package com.jblog;

public interface Constants {

    public interface MyBatis {
        String GET = "get";
        String GET_COUNT = "getCount";
        String GET_MAX_ID = "getMaxId";
        String GET_ALL = "getAll";
        String GET_BY_ID = "getById";
        String GET_BY_ALIAS = "getByAlias";
        String GET_BY_ENTITY = "getByEntity";
        String GET_BY_PARAM = "getByParam";
        String SAVE = "save";
        String SAVE_BATCH = "saveBatch";
        String UPDATE = "update";
//        String EN_DISABLE = "en.disable";
        String DELETE_BY_PK = "deleteByPk";
        String DELETE_BATCH_BY_PKS = "deleteBatchByPks";
        String GET_PREVIOUS = "getPrevious";
        String GET_NEXT = "getNext";
//        String DELETE_BY_ENTITY = "deleteByEntity";
//        String DELETE_BATCH_BY_ENTITY = "deleteBatchByEntity";

    }
    
    public interface Template {
        String TPLS_FRONT = "main/front/";
        String TPL_STYLE_LIST = "sys_defined/list/list_style_";
        String TPL_STYLE_PAGE_CATEGORY = "sys_defined/page/page_style_";
        String TPL_STYLE_PAGE_POST = "sys_defined/page/post_";
        String TPL_SUFFIX = ".html";
        String DEFAULT_PAGE_CSS_CLASS = "cyan";
        
        public interface Mail {
            String BASE = "main/mail/";
            String ACCOUNT_ACTIVE = BASE + "account_active.html";
            String ACCOUNT_PASSWORD_RESET = BASE + "account_password_reset.html";
        }

    }
    
    public interface Encoding {
        String UTF8 = "UTF-8";
    }
    
    public interface Method {
        String POST = "POST";
        String GET = "GET";
    }
    
    public interface Cookie {
        int ACCOUNT_AGE = 2 * 7 * 24 * 60 * 60;//two weeks
    }
    
    public interface System {
        String OK = "ok";
        String TIPS = "tips";
        String ACCOUNT_ID = "accountId";
        String PASSWORD_RESET_CODE = "passwordRestCode";
        String PAGE_STRING = "page";
        String CURRENT_USER = "currentUser";
    }
    
}
